package com.aspose.cells.a.d;

public class za extends zl {
   private com.aspose.cells.b.a.b.zo a;
   private com.aspose.cells.b.a.b.zt b;
   private float c;
   private float d;

   public com.aspose.cells.b.a.b.zo a() {
      return this.c((float)zbv.a((double)this.f()));
   }

   public com.aspose.cells.b.a.b.zo b() {
      return this.c((float)zbv.a((double)(this.f() + this.g())));
   }

   public zt[] c() {
      float var1 = -this.f();
      float var2 = -this.g();
      float var3 = 45.0F;
      if (var2 < 0.0F) {
         var3 = -var3;
      }

      int var4 = (int)(var2 / var3) + 1;
      var4 = Math.min(var4, 8);
      zt[] var5 = new zt[var4];
      float var6 = var1;

      for(int var7 = 0; var7 < var4; ++var7) {
         float var8 = Math.signum(var3) * Math.min(Math.abs(var3), Math.abs(var1 + var2 - var6));
         var5[var7] = this.a(var6, var8);
         var6 += var8;
      }

      return var5;
   }

   private zt a(float var1, float var2) {
      var1 = (float)zbv.a((double)var1);
      var2 = (float)zbv.a((double)var2);
      float var3 = this.d(var1);
      float var4 = this.d(var1 + var2);
      float var5 = var4 - var3;
      float var6 = var5 / 2.0F;
      float var7 = (float)(Math.sin((double)var5) * (Math.sqrt(4.0D + 3.0D * Math.pow(Math.tan((double)var6), 2.0D)) - 1.0D) / 3.0D);
      zt var8 = new zt();
      var8.a(this.c(var1));
      var8.d(this.c(var1 + var2));
      var8.b(new com.aspose.cells.b.a.b.zo(var8.a().d() - var7 * this.h().b() * (float)Math.sin((double)var3), var8.a().e() - var7 * this.h().c() * (float)Math.cos((double)var3)));
      var8.c(new com.aspose.cells.b.a.b.zo(var8.d().d() + var7 * this.h().b() * (float)Math.sin((double)var4), var8.d().e() + var7 * this.h().c() * (float)Math.cos((double)var4)));
      return var8;
   }

   private com.aspose.cells.b.a.b.zo c(float var1) {
      float var2 = this.d(var1);
      return new com.aspose.cells.b.a.b.zo(this.i().d() + this.h().b() * (float)Math.cos((double)var2), this.i().e() - this.h().c() * (float)Math.sin((double)var2));
   }

   private float d(float var1) {
      return (float)Math.atan2((double)(1.0F / this.h().c()) * Math.sin((double)var1), (double)(1.0F / this.h().b()) * Math.cos((double)var1));
   }

   public com.aspose.cells.b.a.b.zo d() {
      return this.a;
   }

   public void a(com.aspose.cells.b.a.b.zo var1) {
      this.a = var1;
   }

   public com.aspose.cells.b.a.b.zt e() {
      return this.b;
   }

   public void a(com.aspose.cells.b.a.b.zt var1) {
      this.b = var1;
   }

   public float f() {
      return this.c;
   }

   public void a(float var1) {
      this.c = var1;
   }

   public float g() {
      return this.d;
   }

   public void b(float var1) {
      this.d = var1;
   }

   public com.aspose.cells.b.a.b.zt h() {
      return new com.aspose.cells.b.a.b.zt(this.e().b() / 2.0F, this.e().c() / 2.0F);
   }

   public com.aspose.cells.b.a.b.zo i() {
      return new com.aspose.cells.b.a.b.zo(this.d().d() + this.h().b(), this.d().e() + this.h().c());
   }

   public void a(ze var1) throws Exception {
      var1.a(this);
   }
}
